************************************************
***Title: oak_masting_clean.do
***Creators: Joelle Abramowitz, Shooshan Danagoulian, and Owen Fleming*
***Notes: This file cleans the oak masting data and constructs a county-date panel.

*For questions, contact
*Owen Fleming
*hg3490@wayne.edu
************************************************


**********SETUP
cd ${path}/data/oak_masting
clear all
set more off


**********IMPORT AND CLEAN
import delimited oak_masting.csv, clear
drop if missing(fipscounty_measurement)
rename fipscounty_measurement county_measurement
rename flag_high oak_masting


**********SAVE
save oak_masting, replace


**********REVERT DIRECTORY
cd ${path}

